<% #endcoding:utf-8%>
<div class="panel">
  <div class="panel-heading">
    <h3><%=@demand.projects%></h3>
  </div>
  <div class="panel-body">
    <p class="alert-danger"><%=flash[:danger]%></p>
    <%=form_for :offer,url:demand_offers_path do |f|%>
        <div class="form-group">
          <%=f.label :报价%>
          <div class="input-group">
            <%=f.text_field :price,:class=>"form-control", "aria-describedby"=>"basic-addon2",:placeholder=>"输入金额，只允许输入数字" %>
            <span class="input-group-addon" id="basic-addon2">元</span>
          </div>
        </div>

        <div class="form-group">
          <%=f.label :补充%>
          <%=f.text_area :description,:class=>"form-control",:rows=>8%>
        </div>
        <%=f.hidden_field :demand_id,value:params[:demand_id]%>
        <%=f.hidden_field :user_id,value:session[:user_id]%>
        <button type="submit" class="btn btn-default">提交</button>
    <% end %>
  </div>
</div>
